/*
 * @Author: zhang gen yuan
 * @Date: 2021-05-12 17:09:50
 * @Descripttion: 
 */

import Layout from '@/layout'
import Login from '@views/login/index';
import Page404 from '@views/404.vue'
import home from './modules/home';
const constantRoutes = [
    {
        path: '/',
        component: Layout,
        children: [
            ...home,
        ]
    },
    {
        path: '/login',
        name: 'Login',
        component: Login,
        meta: {
            title: '登录',
            source: '',
            requireAuth:false
        },
    },
    {
        path: '/404',
        name:'Page404',
        component:Page404,
        meta: {
            title: '404',
            source: '',
            requireAuth:true
        },
    },
    { path: '*',  redirect: "/404" }
]


export default constantRoutes;